<?php

class ComHelloModelPost extends AnSeMedium
{
	/**
	 * Describe the entity
	 * 
	 * @param KConfig $config
	 * @return void
	 */	
	public static function describe($config)
	{			
		parent::describe($config);			
		$mapper = $config->mapper;		
		
		$mapper->getProperty('body')
			->setRequired(true)
			->setFilter( KFactory::tmp('lib.anahita.cs.filter.length', array('min'=>10)) );
					
		$mapper->getProperty('owner')->setInverseRelationship();
	}	
 	
 	/**
 	 * _layout[Layout] called before rendering a layout
 	 * 
 	 * @return void
 	 */
 	protected function _layoutDefault()
 	{
 		//pathway creates a breadcrumb
 		//the breadcrumb is used to create a document title
		$this->pathway->reset()
			->addItem($this->actor)
			->addItem(JText::_('Hello'));
 	}
	
}